package code.untils
{
	import com.patience.utils.ColorMatrix;
	
	import flash.filters.ColorMatrixFilter;
	import flash.filters.DropShadowFilter;
	import flash.filters.GlowFilter;

	/**
	 *滤镜枚举 
	 * @author liangqian
	 * 
	 */	
	public class FiltersEnum
	{
		/**
		 *tips背景滤镜 
		 */		
		public static const TIPS_BACKGROUND_FILTERS:DropShadowFilter = new DropShadowFilter(3,90,0,1,3,3,.65);
		
//		public static const TIPS_TITLE_TEXT_FILTERS:GlowFilter = new GlowFilter(0,1,2,2,100);
		/**
		 * 食谱甜品锁定时的投影
		 */		
		public static const RECEIPE_DESSERT_LOCKED:DropShadowFilter = new DropShadowFilter(2,90,0,1,2,2,150);
		/**
		 *弹窗标题滤镜 
		 */		
		public static const ALERT_TITLE_FILTER:GlowFilter = new GlowFilter(0xFFFFFF, 1, 5, 5, 10);
		/**
		 * 扣掉金钱/能量/现金/爱心值,仓库满了时显示的文字动画滤镜
		 */		
		public static const REDUCE_ITEM_FILTER:GlowFilter = new GlowFilter(0xDA4040,1,5,5,8);
		/**
		 *数量滤镜 
		 */		
		public static const NUMBER_TEXT_FILTER:GlowFilter = new GlowFilter(0x333333,1,5,5,3);
		
		/**
		 *偏绿色发光滤镜 
		 */
		public static const greenGlowFilter:GlowFilter = new GlowFilter(0x00FFCC,1,6,6,5);
		/**
		 *tips标题滤镜 
		 */		
		public static const TIPS_TITLE_TEXT_FILTERS:GlowFilter = new GlowFilter(0x604742,1,3,3,3);
		/**
		 *icon图标的移入或者选中的滤镜 
		 */		
		public static const ICON_HOVER_OR_SELECTED_FILTERS:GlowFilter = new GlowFilter(0xFFCC00,1,7,7);
		
		/**
		 *标题发光滤镜 
		 */		
		public static const TITLE_GLOW_FILTER:GlowFilter = new GlowFilter(0xffffff,1,4,4,8);
		/**
		 *标题投影滤镜 
		 */		
		public static const TITLE_DROP_SHADOW_FILTER:DropShadowFilter = new DropShadowFilter(2,90,0,1,0,0,.37);
		/**
		 *面板背景投影滤镜 
		 */		
		public static const PANEL_DROP_SHADOW_FILTER:DropShadowFilter = new DropShadowFilter(0,0,0,1,20,20,.49);
		/** 文字滤镜  */
		public static const TEXT_GLOW_FILTER:GlowFilter = new GlowFilter(0xffffff,1,2,2,8);
		
		/**数字发光滤镜  */		
		public static const NUM_GLOW_FILTER:GlowFilter = new GlowFilter(0xffffff,1,5,5,8);
		public static const NO_USE_BTN_FILTERS:GlowFilter = new GlowFilter(0x666666,1,4,4,6);
		public static const BIG_GREEN_BTN_TEX_TFILTERS:GlowFilter = new GlowFilter(0x439A09,1,4,4,6);
		
		
		public static const NO_USE_BTN_FILTERS2:GlowFilter = new GlowFilter(0x666666,1,5,5,8);
		public static const BIG_GREEN_BTN_TEX_TFILTERS2:GlowFilter = new GlowFilter(0x439A09,1,5,5,8);
		/** 首次充值描述滤镜 1  */
		public static const FIRST_RECHARGE_DESC_FILTERS1:GlowFilter = new GlowFilter(0x5F618D,1,5,5,10);
		/** 首次充值描述滤镜 2 */
		public static const FIRST_RECHARGE_DESC_FILTERS2:DropShadowFilter = new DropShadowFilter(2,90,0,1,5,5,.32);
		
		public static const TEXT_FILTER:GlowFilter = new GlowFilter(0xFFFFFF, 1, 5, 5, 1);
		/** 进度条tips滤镜  */
		public static const PROGRESS_BAR_TIPS_FILTERS:DropShadowFilter = new DropShadowFilter(0,90,0,1,3,3,.9);
		
		public static const TEXT_DROP_SHADOW_FILTERS:DropShadowFilter = new DropShadowFilter(2,90,0xffffff,1,2,2,1.5);
		/** tips边框滤镜  */		
		public static const TIPS_DROP_SHADOW_FILTERS:DropShadowFilter = new DropShadowFilter(4,90,0,1,5,5,.57);
		/** 商店物品icon滤镜  */
		public static const SHOP_ITEM_GLOW_FILTER:GlowFilter = new GlowFilter(0x392519,.6,12,12,1);
		/** 商品购买价格滤镜  */
		public static const SHOP_ITEM_BUY_PRICE_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,90,0xffffff,1,2,2,1.48);
		/** 商店物品上等级icon的滤镜  */
		public static const SHOP_ITEM_LEVEL_ICON_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,45,0,1,2,2,.24);
		/** 商店物品上锁定信息的滤镜  */
		public static const SHOP_ITEM_LOCK_DESC_GLOW_FILTER:GlowFilter = new GlowFilter(0xffffff,1,5,5,2.8);
		/** 商店页码的滤镜  */
		public static const MARKET_PAGE_NUM_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,267,0x2D1E03,1,2,2,.87);
		/** 仓库物品数量滤镜   */
		public static const STORAGE_NUMBER_TEXT_GLOW_FILTER:GlowFilter = new GlowFilter(0x535C0B,1,4,4,10);
		public static const CAPACITY_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,90,0xffffff,1,3,3,3);
		/** 描述滤镜  */
		public static const DESC_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,90,0xffffff,1,1,1,10);
		
		public static const PROD_NUMBER_TEXT_GLOW_FILTER:GlowFilter = new GlowFilter(0xffffff,1,3,3,10);
		/** 商店物品，仓库物品名字滤镜  */
		public static const SHOP_ITEM_NAME_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,282,0xffffff,1,3,3,1.48);
		/** 锁定时商店物品，仓库物品名字滤镜  */
		public static const LOCKED_SHOP_ITEM_NAME_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,116,0xffffff,1,3,3,1.4);
		
		public static const DROP_ITEM_GLOWFILTERS:GlowFilter = new GlowFilter(0xffffff,1,4,4,6);
		public static const DROP_ITEM_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,120,0,0.33,5,5,8);
		
		public static const FREE_STATE_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(0,90,0,.6,7,7,0.6);
		/** tree没选中时的滤镜  */
		public static const TREE_NORMAL_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,80,0xffffff,1,1,1,1);
		
		/** tree中的下拉列表，文字鼠标移入或选中时的滤镜  */
		public static const TREE_TEXT_SELECTED_OR_HOVER_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,90,0xffffff,1,5,5,1.48);
		/** tree中的下拉列表，普通时的滤镜  */
		public static const TREE_TEXT_NORMAL_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,90,0,1,2,2,0.41);
		/** 购买按钮滤镜 */
		public static const BUY_BTN_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(2,123,0xffffff,1,1,1,.78);
		/** 按钮白色滤镜 */
		public static const TEXT_BTN_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(2,116,0xffffff,1,1,1,8.9);
		/** 好友列表好友好友头像滤镜 */
		public static const FRIEND_ITEM_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(3,50,0,1,5,5,.6);
//		public static const FRIEND_ITEM_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(3.5,40,0,1,6,6,.7);
		/** 主按钮区域滤镜 */
		public static const MAIN_BTN_AREA_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(0,60,0,1,5,5,.6);
		/** 好友列表区域滤镜 */
		public static const FRIENDS_LIST_AREA_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(0,120,0,1,6,6,.8);
		/** 功能按钮区域滤镜  */
		public static const FUNCTION_BTN_AREA_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(3,135,0,1,5,5,.25);
		public static const FUNCTON_BTN_AREA_GLOW_FILTER:GlowFilter = new GlowFilter(0x684134,1,1,1,1.33);
		/** 活动icon投影  */
		public static const ACTIVITY_ICON_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,90,0,1,15,15,1);
		/** 任务tips投影 */
		public static const TASK_TIPS_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(2,90,0,1,8,8,.6);
		/** 加速面板标题发光 */
		public static const COOKTIMEALERT_TITLE_GLOW_FILTER:GlowFilter = new GlowFilter(0x416B25,1,5,5,10);
		/** 加速面板标题投影 */
		public static const COOKTIMEALERT_TITLE_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(3,56,0x666666,1,5,5,1);
		/** 红色按钮文字投影  */
		public static const RED_BTN_TEXT_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(2,45,0,1,0,0,.4);
		/** 邀请好友界面的进度条文字投影 */
		public static const PROGRESS_BAR_TEXT_WITH_INVITE_FRIENDS_VIEW_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,90,0,1,4,4,.87);
		/** 邀请好友界面的tab文字投影 */
		public static const TAB_TEXT_WITH_INVITE_FRIENDS_VIEW_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,90,0xffffff,1,2,2,10);
		/** 邀请好友面板标题投影 */
		public static const INVITE_FRIENDS_VIEW_TITLE_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(2,96,0,.4,4,4,10);
		/** 能量条能量满时能量值发光  */
		public static const NO_ENOUGH_ENERGY_VALUE_TEXT_GLOW_FILTER:GlowFilter = new GlowFilter(0xffffff,1,4,4,10);
		/** 能量条能量满时能量值投影  */
		public static const ENERGY_VALUE_TEXT_DROPSHADOWFILTER1:DropShadowFilter = new DropShadowFilter(1,90,0,.6,0,0,.6);
		/** 能量条能量满时能量值投影  */
		public static const ENERGY_VALUE_TEXT_DROPSHADOWFILTER2:DropShadowFilter = new DropShadowFilter(1,135,0xffffff,1,0,0,1.5);
		/** 能量icon发光 */
		public static const ENERGY_ICON_GLOW_FILTER:GlowFilter = new GlowFilter(0x666666,1,13,13,0.69);
		/** 升级弹窗，等级发光  */
		public static const LEVEL_VALUE_WITH_USER_LEVEL_UP_VIEW_GLOW_FILTER:GlowFilter = new GlowFilter(0xffffff,1,8,8,10);
		/** 升级弹窗，等级投影  */
		public static const LEVEL_VALUE_WITH_USER_LEVEL_UP_VIEW_DROPSHADOWFILTER2:DropShadowFilter = new DropShadowFilter(2,90,0,.27,5,5,5);
		/** 10元大礼包界面描述投影  */
		public static const SUPER_GIFT_VIEW_10_DESC_DROPSHADOWFILTER2:DropShadowFilter = new DropShadowFilter(1,90,0,.2,3,3,5.15);
		/** 10元大礼包界面物品icon发光  */
		public static const SUPER_GIFT_VIEW_10_ICON_GLOW_FILTER:GlowFilter = new GlowFilter(0x666666,1,10,10,0.6);
		/** 食物台升级界面，等级文字的发光 */
		public static const FOOD_TABLE_UP_LEVEL_VALUE_GLOW_FILTER:GlowFilter = new GlowFilter(0xffffff,1,5,5,20);
		/** 食物台升级界面，等级文字的发光 */
		public static const FOOD_TABLE_UP_LEVEL_VALUE_GLOW_FILTER_2:GlowFilter = new GlowFilter(0xffffff,1,8,8,20);
		/** 食物台升级界面，等级文字的投影 */
		public static const FOOD_TABLE_UP_LEVEL_VALUE_DROPSHADOWFILTER2:DropShadowFilter = new DropShadowFilter(2,90,0,.2,3,3,5.15);
		/**10元大礼包icon的文字投影   */
		public static const SUPER_GIFT_10_ICON_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,90,0xffffff,1,3,3,2);
		/** 新手引导按钮投影 */
		public static const BTN_NEW_BIE_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(5, 90, 0, 1, 5, 5, .5);
		/** 任务奖励弹窗，奖励数量投影  */
		public static const TASK_REWARDS_ALERT_NUM_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,45,0,1,3,3,.5);
		/** 印花滤镜   */
		public static const STAMP_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,0,0,1,2,2,.40);
		/** 排行榜界面标题发光  */
		public static const CHARTS_GLOW_FILTER:GlowFilter = new GlowFilter(0x775A1A,1,5,5,10);
		/** 排行榜界面标题投影  */
		public static const CHARTS_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(2,90,0,.27,5,5,5.15);
		/** 排行榜积分发光 */
		public static const CHARTS_SCORE_GLOW_FILTER:GlowFilter = new GlowFilter(0x416B26,1,4,4,10);
		/** 排行榜积分投影 */
		public static const CHARTS_SCORE_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,90,0,.27,3,3,5.15);
		/** 排行榜奖杯标题发光 */
		public static const TROPHY_TITLE_GLOW_FILTER:GlowFilter = new GlowFilter(0x91571E,1,4,4,10);
		/** 排行榜奖杯标题投影 */
		public static const TROPHY_TITLE_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(2,90,0,1,2,2,.5);
		/** 排行榜食谱投影 */
		public static const CHARTS_RECIPE_ICON_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(2,90,0,1,5,5,.5);
		/** 名字文本发光 */
		public static const CHARTS_RANKING_GLOW_FILTER:GlowFilter = new GlowFilter(0x416B26,1,2,2,10);
		
		public static const CHARTS_PRIZE_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(1,90,0,1,2,2,.46);
		public static const CHARTS_PRIZE_DROPSHADOWFILTER2:DropShadowFilter = new DropShadowFilter(1,90,0xffffff,1,2,2,1);
		public static const CHARTS_PRIZE_DROPSHADOWFILTER3:DropShadowFilter = new DropShadowFilter(1,90,0,1,5,5,.5);
		
		public static const NPC_HOVER_FILTERS:GlowFilter = new GlowFilter(0xfffe66,1,7,7,10);
		/** 排行榜回合发光 */
		public static const CHARTS_ROUND_GLOW_FILTER:GlowFilter = new GlowFilter(0x8C2B2B,1,4,4,10);
		
		public static const LIMIT_TIME_NAME_GLOW_FILTER:GlowFilter = new GlowFilter(0x906840,1,8,8,10);
		
		public static const GIFT_LEVEL_10_GLOW_FILTER:GlowFilter = new GlowFilter(0x2c4a69,1,5,5,10);
		/** 锁定地块tips标题发光 */
		public static const LOCKED_LAND_TIPS_TITLE_GLOW_FILTER:GlowFilter = new GlowFilter(0x74550F,1,5,5,10);
		
		public static const NOTICE_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(2,90,0,1,15,15,1);
		
		public static const RECIPE_ICON_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(50,90,0,1,5,5,.5);
		
		public static const ICON_DROPSHADOWFILTER:DropShadowFilter = new DropShadowFilter(5,45,0,1,5,5,.5);
		
		public static const RECIPE_ICON_DROPSHADOWFILTER2:DropShadowFilter = new DropShadowFilter(5,90,0,1,5,5,.5);
		
		public static const TEXT_FILTERS:DropShadowFilter = new DropShadowFilter(1,90,0,1,2,2,.5,1,true);
		public static const TEXT_FILTERS2:DropShadowFilter = new DropShadowFilter(1,90,0xffffff,1,2,2,.5);
		public static const TEXT_FILTERS3:DropShadowFilter = new DropShadowFilter(1,90,0,1,2,2,.5);
		public static const TEXT_FILTERS4:DropShadowFilter = new DropShadowFilter(1,90,0,.5,2,2,1,1,true);
		
		public static const NPC_GLOW_FILTER:GlowFilter = new GlowFilter(0,1,20,20,1,1,true);
		/**
		 *获取颜色滤镜 
		 * @param brightness 亮度
		 * @param contrast 对比度
		 * @param saturation 饱和度
		 * @param hue 色相
		 * @return 
		 * 
		 */
		public static function getColorMatrixFilter(brightness:Number,contrast:Number,saturation:Number,hue:Number):ColorMatrixFilter{
			var colorFilter:ColorMatrixFilter = new ColorMatrixFilter();
			var colorMatrix:ColorMatrix=new ColorMatrix();
			colorMatrix.adjustColor(brightness,contrast,saturation,hue);
			colorFilter.matrix = colorMatrix.toArray();
			return colorFilter;
		}
	}
}